package com.example.analysis.service.impl;

import com.example.analysis.domain.EvaluateListInfo;
import com.example.analysis.domain.Rank1;
import com.example.analysis.domain.Rank2;
import com.example.analysis.domain.Semester;
import com.example.analysis.dto.EntireDto;
import com.example.analysis.mapper.DashBoardMapper;
import com.example.analysis.service.DashBoardService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @Author：txy
 * @name：DashBoardServiceImpl
 * @Date：2025/5/18
 * @Filename：DashBoardServiceImpl
 */
@Service
public class DashBoardServiceImpl implements DashBoardService {
    @Resource
    private DashBoardMapper boardMapper;

    @Override
    public EntireDto getInfo() {
        return boardMapper.getInfo();
    }

    @Override
    public List<Rank1> getOne(String semester) {

        return boardMapper.getOne(semester);
    }

    @Override
    public List<Rank2> getTwo(EvaluateListInfo evaluateListInfo) {
        return boardMapper.getTwo(evaluateListInfo);
    }

    @Override
    public List<String> getSemester() {
        return boardMapper.getSemester();
    }

    @Override
    public List<String> getSemester1() {
        return boardMapper.getSemester1();
    }

    @Override
    public List<String> getSemester2() {
        return boardMapper.getSemester2();
    }
}
